package game;

import java.awt.*;
import java.awt.image.BufferedImage;

public class SkinManager {

    public BufferedImage normal;
    public BufferedImage black;
    public BufferedImage coloured;
    public BufferedImage batman;
    public BufferedImage mario;

    public  SkinManager(){
        this.normal = ImageManager.loadImage("src/Images/normal/trex0.png");
        this.black = ImageManager.loadImage("src/Images/black/trex0.png");
        this.coloured = ImageManager.loadImage("src/Images/coloured/trex0.png");
        this.batman = ImageManager.loadImage("src/Images/batman/trex0.png");
        this.mario = ImageManager.loadImage("src/Images/mario/trex0.png");
    }
    public void draw(Graphics g){
        int x = 120;
        int y = 160;
        g.drawImage(this.normal,x,y,this.normal.getWidth(),this.normal.getHeight(),null);
        g.drawRect(x,y,this.normal.getWidth(),this.normal.getHeight());

        g.drawImage(this.black,x+70,y,this.black.getWidth(),this.black.getHeight(),null);
        g.drawRect(x+70,y,this.black.getWidth(),this.black.getHeight());

        g.drawImage(this.coloured,x+140,y,this.coloured.getWidth(),this.coloured.getHeight(),null);
        g.drawRect(x+140,y,this.coloured.getWidth(),this.coloured.getHeight());

        g.drawImage(this.batman,x+210,y+10,this.batman.getWidth(),this.batman.getHeight(),null);
        g.drawRect(x+210,y,this.batman.getWidth(),this.batman.getHeight());

        g.drawImage(this.mario,x+280,y+10,this.mario.getWidth(),this.mario.getHeight(),null);
        g.drawRect(x+280,y,this.mario.getWidth(),this.mario.getHeight());
    }



}
